from ctypes import *
libad=cdll.LoadLibrary("/home/pi/Documents/rmo.so")
def diff_fb(B):
    c=len(B)-1
    c=libad.rm(c)
    diff=[]
    for i in range (c):
        mtem=B[i]-B[i-1]
        diff.append(mtem)
    diff[0]=0
    return diff
